package com.party.service.exam;

import com.party.common.Page;
import com.party.model.ExamAnswer;
import com.party.model.ExamAnswer;

import java.util.List;

/**
 * 自建考试答案
 */
public interface ExamAnswerService {
    /**
     * 增删改查
     */
    public int addExamAnswer(ExamAnswer examAnswer);

    public int deleteExamAnswerByPrimaryKey(Integer id);

    public int deleteExamByIds(String ids);

    public int deleteExamByExamTestIds(String ids);

    public ExamAnswer getExamAnswerByPrimaryKey(Integer id);

    public int updateExamAnswerByPrimaryKey(ExamAnswer examAnswer);

    public List<ExamAnswer> getListExamAnswerByExamTestPrimaryKey(Integer examTestId);
    /**
     * 获得自建考试答案数据列表（分页）
     * @param examAnswer
     * @param pageSize
     * @param pageNumber
     * @return
     */
    public Page getExamAnswerTestList(ExamAnswer examAnswer, int pageSize, int pageNumber);

    public List<ExamAnswer> getByTestId(Integer examtestid);
}
